﻿<!DOCTYPE html>
<html>
<head>
<title>组件列表</title>
<meta charset="utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<link rel="stylesheet" href="css/style.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript">

<!--
$(document).ready(function(){
	$.getJSON("cat.php",function(data){
		var html ='<dl>';
	   $.each(data,function(entryIndex, entry){
			if(this.abspath.split("-").length > 2){
				html += '<dd><a href="get.php?id=' + this.id +'">'+ this.name +'</a></dd>';
			}else{
				html += '<dt><a href="'+ this.id +'">'+ this.name +'</a></dt>';
			};
		});
		html += '</dl>';
		$('#categoryList').append(html);		
	}); 
	$.getJSON("get.php?id=all",function(data){
	   $.each(data,function(entryIndex, entry){
			var html = '<div class="iteam clear">';
			html += '<dl class="m-info">';
			html += '<dt><a href="##">' + entry.cname +'</a></dt>';
			html += '<dd>修改人：reeqiwu</dd>';
			html += '<dd>修改时间：2012-01-15</dd></dl>';
			html += '<div class="op-area">';
			html += '<ul><li><a href="##">copyHTML</a> <a href="##">copyCSS</a></li><li><a href="edit.php?id='+ this.mid +'">编辑</a></li><li><a href="delate.php?id='+ this.mid +'">删除</a></li></ul>';
			html += '</div></div>';					
			$('#list').append(html);
		});          
	});            
});



//-->
</script>
</head>
<body>
  <header class="header">
	<h1>Module Manager<sup>beta</sup></h1>
  </header>
  <aside class="side-bar">
	<ul class="main-menu">
	  <li><span class="icon-new"><i class="h"></i><i class="v"></i></span><a href="in.html">新增组件</a></li>
	  <li class="current"><span class="icon-list"><i class="ht"></i><i class="hm"></i><i class="hb"></i></span><a href="##">组件列表</a></li>
	</ul>
	<nav class="category-list" id="categoryList">
	<!--	<dl>
		  <dt><a href="##">TMS</a><a href="" target="_blank"></a></dt>
		  <dd><a href="##">布局类</a></dd>
		  <dd><a href="##">表格类</a></dd>
		  <dd><a href="##">表单类</a></dd>
		  <dt><a href="##">TMS</a><a href="" target="_blank"></a></dt>
		  <dd><a href="##">布局类</a></dd>
		  <dd><a href="##">表格类</a></dd>
		  <dd><a href="##">表单类</a></dd>
		</dl>
	-->
	</nav>
  </aside>
  <div class="content">
	<div class="module-list table-list" id="list">
<!--		<div class="iteam clear">
			<dl class="m-info">
			  <dt><a href="##">组件名称组件名称组件名称</a></dt>
			  <dd>修改人：reeqiwu</dd>
			  <dd>修改时间：2012-01-15</dd>
			</dl>
			<div class="op-area">
			  <ul>
			    <li><a href="##">copyHTML</a> <a href="##">copyCSS</a></li>
				<li><a href="##">编辑</a></li>
			    <li><a href="##">删除</a></li>
			  </ul>
			</div>
		</div>
		<div class="iteam clear">
			<dl class="m-info">
			  <dt><a href="##">组件名称组件名称组件名称</a></dt>
			  <dd>修改人：reeqiwu</dd>
			  <dd>修改时间：2012-01-15</dd>
			</dl>
			<div class="op-area">
			  <ul>
			    <li><a href="##">copyHTML</a> <a href="##">copyCSS</a></li>
				<li><a href="##">编辑</a></li>
			    <li><a href="##">删除</a></li>
			  </ul>
			</div>
		</div>
		-->
	</div>
  </div>

</body>
</html>